package net.wanho.util;

public class CurrentUtil {
    private static final ThreadLocal<Integer> localId = new ThreadLocal<>();
    public static void setUserId(Integer userId) {
        localId.set(userId);
    }
    public static Integer getUserId() {
        return localId.get();
    }
    public static void removeUserId() {
        localId.remove();
    }

}
